package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Reservation;
import org.apache.ibatis.annotations.Param;

/**
 * 房间预约Mapper接口
 * 
 * @author ruoyi
 * @date 2025-05-18
 */
public interface ReservationMapper 
{
    /**
     * 查询房间预约
     * 
     * @param id 房间预约主键
     * @return 房间预约
     */
    public Reservation selectReservationById(Long id);

    /**
     * 查询房间预约列表
     * 
     * @param reservation 房间预约
     * @return 房间预约集合
     */
    public List<Reservation> selectReservationList(Reservation reservation);

    /**
     * 新增房间预约
     * 
     * @param reservation 房间预约
     * @return 结果
     */
    public int insertReservation(Reservation reservation);

    /**
     * 修改房间预约
     * 
     * @param reservation 房间预约
     * @return 结果
     */
    public int updateReservation(Reservation reservation);

    /**
     * 删除房间预约
     * 
     * @param id 房间预约主键
     * @return 结果
     */
    public int deleteReservationById(Long id);

    /**
     * 批量删除房间预约
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReservationByIds(Long[] ids);
//    查询今日当前时间的房间占用情况
    public int getRoomRate(@Param("date") String date,@Param("time") String time);
}
